package top.huhuiyu.springboot3.p2301.entity.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GeoResult implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private Integer status;
    private String info;
    private Integer count;
    private List<Geocode> geocodes;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Geocode implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;

        private String country;
        private String province;
        private String city;
        private String district;
        private String adcode;
        private String citycode;
        private String location;
        private String level;
        private String formatted_address;

    }


}
